<template>
    <div>
        <span v-if="noData" class="data_max">--- 暂无数据 ---</span>
        <template v-else>
            <span v-if="loading" class="data_loading">加载中...</span>
            <span v-if="max" class="data_max">--- 没有更多了 ---</span>
        </template>
    </div>
</template>

<script>
export default {
    props: {
        noData: {
            type: Boolean,
            default: false
        },
        loading: {
            type: Boolean,
            default: false
        },
        max: {
            type: Boolean,
            default: false
        },
    }

}
</script>
<style lang="less" scoped>
.data_max, .data_loading{
    display: block;
    width: 100%;
    color: #ccc;
    font-size: 22rpx;
    text-align: center;
    line-height: 60rpx;
}
.data_loading{
    color: #666;
}
</style>
